<template>
  <!-- recommend vue prop sort
  is v-for v-if v-else-if v-else v-show v-cloak v-pre v-once id ref key slot v-model all-normal-props v-bind v-on v-html v-text-->
  <div>
    <web-view v-if="openURL" :src="openURL"></web-view>
  </div>
</template>

<script>
import { getCurrentPageParams } from '@/utils'
import { domain } from '@/utils/request'
import {} from '@/api'

export default {
  components: {},
  props: {},
  data () {
    return {}
  },
  computed: {
    openURL () {
      let openShopOrderNo = getCurrentPageParams('openShopOrderNo')
      let customerId = getCurrentPageParams('customerId')
      if (openShopOrderNo) {
        return (
          domain.replace(/\/\w*$/, '') +
          '/small-store/shop-open-choose?openShopOrderNo=' +
          openShopOrderNo +
          '&customerId=' +
          customerId +
          '&shopId=56'
        )
      } else {
        return domain.replace(/\/\w*$/, '') + '/small-store/shop-open-pay'
      }
    }
  },
  watch: {},
  created () {},
  mounted () {},
  onShow () {},
  methods: {}
}
</script>

